<?php
namespace PsiFramework\Classes\Util\Parameters\Action;

import("Classes.Util.Parameters.Parameters");

use \PsiFramework\Classes\Util\Parameters\Parameters;
use \PsiFramework\Classes\Util\Parameters\Action\ActionParameters;

/**
 * PsiFramework
 * Php Simple Framework
 *
 * @author Rémi San
 * @version beta
 */

/**
 * The ActionMapping class is the class to manage action mappings
 *
 * @package Util.Parameters
 */
class ActionMapping extends Parameters
{

    public function __construct(/*ActionParameters[]*/ $parameters=array())
    {
        parent::__construct($parameters);
    }

    public function getActions()
    {
        return $this->_parameters ;
    }

    public function getAction(/*string*/ $actionName)
    {
        return parent::getParameter($actionName);
    }

    public function addAction(ActionParameters $action)
    {
        $this->_parameters[$action->getName()] = $action ;
    }
}
